package com.ruoyi.erp.mapper;

import com.ruoyi.erp.domain.XzgCustomer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XzgCustomerMapper {
    int deleteByPrimaryKey(Long customerId);

    int insert(XzgCustomer record);

    int insertSelective(XzgCustomer record);

    XzgCustomer selectByPrimaryKey(Long customerId);

    int updateByPrimaryKeySelective(XzgCustomer record);

    int updateByPrimaryKey(XzgCustomer record);

    List<XzgCustomer> selectCustomerList(XzgCustomer customer);

    int logicDeleteCustomerById(@Param("customerIds") Long[] customerIds, @Param("username") String username);

    Long selectByNameAndDepartmentAndCompany(@Param("customerName") String customerName, @Param("department") String department, @Param("company") String company);
}